<?php
require_once 'Validate/ValidateUri.php';

/**
 * A form used to add feeds
 * @author panosbaroudjian
 *
 */
class Application_Form_AddFeed extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setMethod('post');
        $url = new Zend_Form_Element_Text('feed_url');
        $url->setLabel("Add a feed by its URL:");
        $validator = new Validate_Uri();
        $url->addValidator($validator);
        $this->addElement($url);
        $this->addElement('submit',
            'addFeedSubmit',
            array('ignore' => true, 'label' => 'Add'));
    }
}

